package com.itheima.d4_printstream;

import java.io.PrintStream;
import java.nio.charset.Charset;

public class PrintTest1 {
    public static void main(String[] args) {
        try(
                PrintStream ps=
                        new PrintStream
                                ("C:\\Users\\dell\\IdeaProjects\\file-io-app\\io-app2\\src\\itheima08.txt",
                                        Charset.forName("GBK"));
                ){
        ps.println(97);
        ps.println(true);
        ps.println('a');
        ps.println("天津");
        }catch (Exception e){

        }
    }
}
